home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Tools - Objects / E.T.O. #4 Installer / SourceBug Install < prev    next >
Text File  |  1991-05-23  |  1KB  |  40 lines

  1. #    S O U R C E B U G   I N S T A L L A T I O N   S C R I P T
  2. #
  3. #    Copyright Apple Computer, Inc. 1991 - All rights reserved.
  4. #    
  5. #
  6. #    This script is used to install the SourceBug debugger, version 1.0d32 from
  7. #    the E.T.O. #4 distribution compact disk into a folder called "SourceBug Folder"
  8. #    on the destination hard disk. 
  9. #
  10. #    Options: None
  11. #
  12. #    This script makes use of the following Shell variables:
  13. #
  14. #    {CDVolume}        - the name of the CD Distribution volume
  15. #
  16. #    {Tools}            - the "Tools - Objects" folder
  17. #
  18. #    {DestVolume}    - the name of the volume from which the Installer was launched
  19. #
  20. #    {SBOption}    - a flag used to indicate which version of SourceBug to install
  21.  
  22. set Source    "{CDVolume}{Tools}SourceBug"
  23.  
  24. ###    See if a folder called "SourceBug Folder" already exists, 
  25. ###    if so, rename it to "SourceBug Folder.Old"
  26.  
  27. if "`Exists -d "{DestVolume}SourceBug Folder"`"
  28.     if "`Exists -d "{DestVolume}SourceBug Folder.Old"`"
  29.         Delete -y "{DestVolume}SourceBug Folder.Old"
  30.     End
  31.  
  32.     Rename -y "{DestVolume}SourceBug Folder"     "{DestVolume}SourceBug Folder.Old"
  33. End
  34.  
  35. Duplicate -y "{Source}"        "{DestVolume}SourceBug Folder:"
  36.  
  37. ### That's It!
  38.  
  39. Exit 0